import request from '@/utils/request'

// 查询随访记录列表
export function listFollowRecord(query) {
  return request({
    url: '/business/followRecord/list',
    method: 'get',
    params: query
  })
}

// 查询随访记录详细
export function getFollowRecord(id) {
  return request({
    url: '/business/followRecord/' + id,
    method: 'get'
  })
}

// 新增随访记录
export function addFollowRecord(data) {
  return request({
    url: '/business/followRecord',
    method: 'post',
    data: data
  })
}

// 修改随访记录
export function updateFollowRecord(data) {
  return request({
    url: '/business/followRecord',
    method: 'put',
    data: data
  })
}

// 删除随访记录
export function delFollowRecord(id) {
  return request({
    url: '/business/followRecord/' + id,
    method: 'delete'
  })
}
